var salary=prompt
salary=parseInt(salary)
console.log(salary>5000?(salary>8000?(salary-8000)*0.1:(salary-5000)*0.05):0)